<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    @include('admin.common.errors')
    <form action="{{ route('admin.user.role', $user) }}"  method="post">
        @csrf
        @foreach($roleAll as $item)
            <div>
                <label> {{ $item->name }}
                    <input type="radio" name="role_id" value="{{ $item->id }}"
                    @if($user->role_id == $item->id)
                        checked
                    @endif
                    >
                </label>
            </div>
        @endforeach

        <button type="submit">给用户指定角色</button>
    </form>
</body>
</html>
